package com.itliupeng.stock.mapper;

import com.itliupeng.stock.pojo.domain.children;
import com.itliupeng.stock.pojo.entity.SysPermission;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
* @author 22375
* @description 针对表【sys_permission(权限表（菜单）)】的数据库操作Mapper
* @createDate 2025-04-06 20:25:45
* @Entity com.itliupeng.stock.pojo.entity.SysPermission
*/
public interface SysPermissionMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SysPermission record);

    int insertSelective(SysPermission record);

    SysPermission selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysPermission record);

    int updateByPrimaryKey(SysPermission record);

    ArrayList<children> getMajorPMT(String code);

    List<SysPermission> getPermissions(String btn);

    List<Map<String, String>> getPermissionsTree();
}
